package com.shqcjd.yunweiyanoperator.ui.adapter;

import android.view.View;
import android.widget.TextView;

import com.HiScene.HiDeviceCenterKit.core.entity.Device;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shqcjd.yunweiyanoperator.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class DeviceListAdapter extends BaseQuickAdapter<Device, DeviceListAdapter.ViewHolder> {
    public DeviceListAdapter() {
        super(R.layout.item_device_list);
    }

    @Override
    protected void convert(ViewHolder helper, Device item) {
        helper.tv_title.setText(item.getSn());
    }

    class ViewHolder extends BaseViewHolder {
        @BindView(R.id.tv_title)
        TextView tv_title;
        public ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }
}
